import request from '@/config/axios'

export interface ProductionCode {
  id : string
  name : string
  internalCode : string
  orderCode : string
  type : string
}


export interface UpdatedProductionCode {
  sourceProductionCode : string
  targetProductionCode: string
}

//查询箱码列表
export const getfinshedProductCode = (params: PageParam) => {
  return request.get({ url: '/project/production-code/page', params })
}

export const updateProductCode = (data: UpdatedProductionCode) => {
  return request.put({ url: '/project/production-code/updateProductionCodeKey', data })
}
